package com.symria.client.resource;

import org.apache.struts2.ServletActionContext;

import com.symria.framework.upload.util.UploadInfo;
import com.symria.system.util.SessionHelper;
public class UploadMonitor{
    public static UploadInfo getUploadInfo(){
        if (ServletActionContext.getRequest().getSession().getAttribute("uploadInfo") != null)
            return (UploadInfo) ServletActionContext.getRequest().getSession().getAttribute("uploadInfo");
        else
            return new UploadInfo();
    }
    public static void removeUploadInfo(){
    	SessionHelper.remove("uploadInfo");
    }
}
